CC=$(shell which gcc)
CWD=$(shell pwd)
sdlconfig=$(shell which sdl-config)

cflags=-I$(CWD)/src $(shell $(sdlconfig) --cflags) -O3 --fast-math -ggdb
libs=$(shell $(sdlconfig) --libs) -lSDL_image

export cflags
export libs
export CC

all:
	@(\cd src && $(MAKE))

clean:
	@(\cd src && $(MAKE) clean)
	@(\rm -f BnB)

